package com.army.stock.service;

import com.alibaba.fastjson.JSONObject;
import com.army.stock.domain.ArmyYearplan;
import com.javalife.common.domain.page.PaginatedArrayList;

import java.util.List;
import java.util.Map;

/**
 * Created by zhangyong on 15/1/7.
 */
public interface ArmyYearplanService {

    public PaginatedArrayList getArmyYearplanPageInfo(int currentPage, int pageSize, Map<String, Object> map);

    public void addArmyYearPlan(ArmyYearplan armyYearplan);

    public Map<String, Object> addArmyYearPlan(JSONObject jsonObject);

    public ArmyYearplan getArmyYearplanById(Long id);

    public PaginatedArrayList getArmyYearplanItemsPageInfo(int currentPage, int pageSize, Map<String, Object> map);

    public List getAllArmyYearPlanItems(Long id);

    public void updateArmyYearPlan(JSONObject jsonObject);

    public void reviewArmyYearPlan(ArmyYearplan armyYearplan);

    public void applyArmyYearPlan(Long yearPlanId);

    public PaginatedArrayList getArmyYearplanPageInfoForFinance(int currentPage, int pageSize, Map<String, Object> map);

    public List<ArmyYearplan> getArmyYearPlanByDepartmentId(Long departmentId);

    public ArmyYearplan getArmyYearPlanByDepartmentIdAndYear(Long departmentId, Integer year);

}
